xmlgeneric: pass qstrings all the way through
cet_util: don't molest rte_name, rte_desc with potential double encodings.
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4658
f51c46e8-681c-474f-0cfe-
069cfd0219fb
}
rte->cet_converted = 1;
-
+#if NEW_STRINGS
+// rte->rte_name = route->rte_name;
+// rte->rte_desc = route->rte_desc;
+#else
rte->rte_name = cet_convert_string(CSTRc(route->rte_name));
rte->rte_desc = cet_convert_string(CSTRc(route->rte_desc));
+#endif
const char* rte_url = cet_convert_string(route->rte_url);
rte->rte_url = rte_url;
xfree(rte_url);
{
ignr_xml_error((track == NULL));
#if NEW_STRINGS
-qDebug() << args;
track->rte_desc = args;
#else
if ((args != NULL) && (strlen(args) > 0)) {
// thus we will not process the EndElement case as we will issue a readNext first.
// does a caller ever expect to be able to use both a cb_cdata and a
// cb_end callback?
+#if NEW_STRINGS
+ cb(c, NULL);
+#else
cb(CSTRE(c), NULL);
+#endif
current_tag.chop(reader.qualifiedName().length() + 1);
}
break;
cb = xml_tbl_lookup(current_tag, cb_end);
if (cb) {
+#if NEW_STRINGS
+ cb(reader.name().toString(), NULL);
+#else
cb(CSTRE(reader.name().toString()), NULL);
+#endif
}
current_tag.chop(reader.qualifiedName().length() + 1);
break;